package com.example.cognitivesystemserver.mapper;

import com.example.cognitivesystemserver.pojo.Login;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface LoginMapper {

    //通过用户名查询用户记录，返回用户对象

    public Login queryLoginById(String userId);

    int deleteByPrimaryKey(Integer id);

    int insert(Login record);

    int insertSelective(Login record);

    //
    Login selectByUserId(String userId);

    int updateByPrimaryKeySelective(Login record);

    int updateByPrimaryKey(Login record);




}